﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LingDingSoft.Service
{
    public class ShopService : ServiceBase
    {
        private long _shopID;
        private Dictionary<string, object> _Params;

        public ShopService(long userID)
        {
            _shopID = userID;
            _Params = new Dictionary<string, object>();
            _Params.Add("shopId", _shopID);
        }
        public List<Model.ShopCateModel> GetShopCate()
        {
            return SendRequestEx<List<Model.ShopCateModel>>( "eleme.product.category.getShopCategories", _Params);

        }

        public List<Model.ShopCateModel> GetShopCateWithChildren()
        {
            return SendRequestEx<List<Model.ShopCateModel>>("eleme.product.category.getShopCategoriesWithChildren", _Params);

        }
        /// <summary>
        /// 带参示例
        /// </summary>
        /// <param name="exampleParams"></param>
        /// <returns></returns>
        public List<Model.ShopCateModel> GetExample(string exampleParams)
        {
            _Params.Add("exampleParamsName", exampleParams);
            return SendRequestEx<List<Model.ShopCateModel>>("eleme.product.category.getShopCategoriesWithChildren", _Params);

        }

    }
}
